package com.hgyc.mom.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hgyc.mom.base.entity.MaterialType;
import com.hgyc.mom.base.vo.MaterialTypeParam;

import java.util.List;

/**
 * <p>
 * 物料类型信息 服务类
 * </p>
 *
 * @author fwj
 * @since 2025-03-24
 */
public interface MaterialTypeService extends IService<MaterialType> {

    List<MaterialType> treeList(MaterialTypeParam materialTypeParam);

    /**
     * 添加节点
     * @param materialType 物料类型
     */
    void addNode(MaterialType materialType);

    /**
     * 根据名称获取类型
     * @param type 类型
     * @return 类型
     */
    MaterialType getByName(String type);
}
